<?php

class ErrorHandler extends CErrorHandler {

	public $specialErrorActions = array();
	
	public function init() {
		parent::init();
		$pathInfo = Yii::app()->getRequest()->getPathInfo() . '/';
		$errorAction = '';
		foreach($this->specialErrorActions as $k=>$v) {
			if(strpos($pathInfo, $k) === 0) {
				$errorAction = $v;
			}
		}
		if($errorAction) $this->errorAction = $errorAction;
	}
	
}

?>